<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>WAI2008 - Página Teste</title>
</head>
<body onload="javascript:getSignal()">
	<f:view>
		<h:form>
			<h:outputText value="Estado do Servidor: "></h:outputText>
			<h:outputText style="color:green; font-weight:bold" value="#{serverSocketController.serverState}"></h:outputText>
			<br><br>
			<h:commandButton id="startServer" action="#{serverSocketController.startServer}" value="Start Server"></h:commandButton>
			<h:commandButton id="stopServer" action="#{serverSocketController.stopServer}" value="Stop Server"></h:commandButton>
		</h:form>
	</f:view>
</body>
</html>